package com.tensquare.article.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tensquare.article.pojo.Article;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * 文章(TbArticle)表数据库访问层
 *
 * @author long
 * @since 2021-07-14 11:51:07
 */
public interface ArticleDao extends BaseMapper<Article> {

    @Update(value = "update tb_article set isdelete=1 where id=#{id}")
    void deleteArticleById(@Param("id") String id);
}
